// ApplyP2PCall 申请通话对象
export class ApplyP2PCall {
  constructor(
    public userId: number,
    public nickname: string,
    public avatar: string,
    public targetId: number,
    public targetName: string,
    public targetAvatar: string,
    public callType: string
  ) {}
}

// ResponseP2PCall 响应申请通话对象
export class ResponseP2PCall {
  constructor(
    public userId: number, // 接收方
    public targetId: number, // 发起方
    public respStatus: boolean,
    public reason: string
  ) {}
}

// IceP2PCall Stream和 Ice对象
export class IceP2PCall {
  constructor(
    public targetId: number,
    public candidate: any
  ) {}
}

// DescriptionP2PCall 发送offer/answer
export class DescriptionP2PCall {
  constructor(
    public targetId: number,
    public desc: any
  ) {}
}

export class NotifyFrameBuilt {
  constructor(public targetId: number) {}
}
